package com.yft.util;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class UrlUtils {

	public static String readUrlResponse(String urlvalue) throws Exception {
		String inputLine="";
		  
		URL url = new URL(urlvalue);
		HttpURLConnection urlConnection  = (HttpURLConnection)url.openConnection();			
		BufferedReader in  = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
		inputLine = in.readLine().toString();
				
		return inputLine;
	  }

}
